﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Helpers
{
    public static class StringHelper
    {
        public static string Times(this string str, int numberOfTimes)
        {
            var concatenatedString = new StringBuilder();
            for (var i = 0; i < numberOfTimes; i++)
            {
                concatenatedString.Append(str);
            }
            return concatenatedString.ToString();
        }
    }
}
